/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ucm;

import java.io.FileInputStream;

/**
 *
 * @author 马凯
 */
public class CheckSetting_UC {
    private static CheckSetting_UC csuc;
    private String courseName;
    private FileInputStream file;
    
    public static CheckSetting_UC getInstance(String courseName){
        if(csuc==null){
            csuc = new CheckSetting_UC();
            csuc.courseName = courseName;
        }
        return csuc;
    }
    
    public int run(){
        try{
            //System.out.println("The course name is " + courseName);
            //file = new FileInputStream(courseName+".xlm");
            //file.close();
            return 1;
        }catch(Exception e){
            return 0;
        }
    }
}
